package com.yun.zf.common.app.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 房源关注表
 * </p>
 *
 * @author cj
 * @since 2021-05-27
 */
@TableName("zf_follow")
@Data
public class ZfFollow implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "省级区划代码")
    private Long provinceCode;

    @ApiModelProperty(value = "城市编码")
    private Long cityCode;

    @ApiModelProperty(value = "省级名称")
    @NotBlank(message = "省级名称不能为空")
    private String provinceName;

    @NotBlank(message = "城市名称不能为空")
    @ApiModelProperty(value = "城市名称")
    private String cityName;

    @ApiModelProperty(value = "房源id或者小区id")
    private Long horcId;

    @ApiModelProperty(value = "关注类型1租房，2二手房，3小区")
    private int followType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime = new Date();


}
